package com.example.spring.bean;

import java.util.Date;

/**
 * ClassName:Dog
 * Package:com.example.spring.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-16:41
 * @Version:v1.0
 */
public class Dog {

    private String name;

    private Integer age;

    private Date birth;

    //p命名空间注入底层还是set注入,p命名空间是用来简化set注入
    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Dog{" +
               "name='" + name + '\'' +
               ", age=" + age +
               ", birth=" + birth +
               '}';
    }
}
